package com.openbravo.bean.erp.viewbean;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.openbravo.bean.infobean.CustomerInfo;

public class CustomerAnalysisInfo extends CustomerInfo{

	 /**
	 * 
	 */
	private static final long serialVersionUID = 8537415205107036788L;
	protected String card;
	 protected Double maxdebt;
	 public Date curdate;
	 public Double curdebt=0.0;
	 
	 Map<String,CustomerTransaction> transaction=new HashMap<String,CustomerTransaction>();
	
	public CustomerAnalysisInfo(String id) {
		super(id);
	}

	public CustomerAnalysisInfo() {
		// TODO Auto-generated constructor stub
	}

	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card;
	}

	public Double getMaxdebt() {
		return maxdebt;
	}

	public void setMaxdebt(Double maxdebt) {
		this.maxdebt = maxdebt;
	}

	public Date getCurdate() {
		return curdate;
	}

	public void setCurdate(Date curdate) {
		this.curdate = curdate;
	}

	public Double getCurdebt() {
		return curdebt;
	}

	public void setCurdebt(Double curdebt) {
		this.curdebt = curdebt;
	}

	public Map<String, CustomerTransaction> getTransaction() {
        return transaction;
    }

    public CustomerTransaction getTransaxtion(String orderType){
       return  transaction.get(orderType);
    }

    public void putTransaxtion(String orderType,CustomerTransaction tran){
        transaction.put(orderType, tran);
    }
    
    public void setTransaction(Map<String, CustomerTransaction> transaction) {
        this.transaction = transaction;
    }
	
}
